<!-- Content Header (Page header) -->
<section class="content-header">
    <h1>
        IPPI Admin Page
        <small>Donatur</small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="<?php echo base_url("admin_home");?>"><i class="fa fa-dashboard"></i> Home</a></li>
        <li class="active">Admin Donatur</li>
    </ol>
</section>

<!-- Main content -->
<section class="content">
    <!-- Main row -->
    <div class="row">
        <div class="col-md-12">
            <div id="msg" class="alert alert-danger alert-dismissable">
                <i class="fa fa-ban"></i>
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">�</button>
                <b>Alert!</b> Danger alert preview. This alert is dismissable. A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart.
            </div>
        </div>
        <!-- right col (We are only adding the ID to make the widgets sortable)-->
        <div class="col-xs-12">
            <div class="box">
                <div class="box-header">
                    <h3 class="box-title">Donatur List Data</h3>                                    
                </div><!-- /.box-header -->
                <div class="box-body table-responsive">
                        <!-- .table - Uses sparkline charts-->
                    <table id="example2" class="table table-striped">
                        <thead>
                            <tr>
                                <th>No &nbsp;</th>
                                <th>Judul</th>
                                <th>Thumbnail</th>
                                <th>Action </th>
                            </tr>
                        </thead>
                        <tbody>
                        <?php
                        $i=1;
                        foreach ($list_data as $r) {
                            ?>
                            <tr>
                                <td><?php echo $i++;?></td>
                                <td><?php echo$r->title;?></td>
                                <td>
                                    <img src="<?php echo base_url($r->image);?>" style="max-height: 50px">
                                </td>
                                <td>
                                    <a class="btn btn-xs btn-danger delete_slide" href="#" data-id="<?php echo $r->id_donatur;?>">hapus</a>
                                </td>
                            </tr>

                                <?php
                        }
                        ?>
                        </tbody>
                    </table>
                </div>
            </div>
                                    <a href="<?php echo site_url()?>admin_slide/add" class="btn btn-primary btn-sm"><i class="fa fa-plus"></i> &nbsp;Upload new slide</a>

            <!-- Map box -->
            
            <!-- /.box -->
            
            
        </div><!-- right col -->
    </div><!-- /.row (main row) -->
</section><!-- /.content -->